<?php

namespace App\Modules\Index\Models;


use Illuminate\Database\Eloquent\Model;

/**
 * @package App\Modules\Index\Models
 */
class Insulin extends Model
{
    protected $table = 'insulin';

    protected $fillable = ['id','user_id','prescription_id','insulin_name_en','insulin_name_cn', 'insulin_type','insulin_preparation','insulin_dosage', 'maked_at','meals','type','created_at', 'updated_at'];

    /**
     * 添加胰岛素
     * @param $param
     * @return mixed
     */
    static function addInsulin($param)
    {
        // TODO check
        return self::create($param);
    }


}